package com.example.management.system.service

import com.example.management.system.domain.RoleDO
import org.springframework.stereotype.Service

@Service
interface RoleService {

    operator fun get(id: Long?): RoleDO

    fun list(): List<RoleDO>

    fun save(role: RoleDO): Int

    fun update(role: RoleDO): Int

    fun remove(id: Long?): Int

    fun list(userId: Long?): List<RoleDO>

    fun batchremove(ids: Array<Long>): Int
}
